//package com.subtlman.logframework.controller;
//
//import com.subtlman.logframework.aop.AuditLog;
//import com.subtlman.logframework.entity.LogTbl;
//import com.subtlman.logframework.entity.Users;
////import com.subtlman.logframework.mapper.LogMapper;
//import com.subtlman.logframework.mapper.UsersDAO;
//import com.subtlman.logframework.resp.ServiceResp;
//import com.subtlman.logframework.utils.QueueUtil;
//import com.subtlman.logframework.utils.Util;
//import io.swagger.annotations.Api;
//import org.springframework.http.HttpRequest;
//import org.springframework.http.HttpStatus;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.context.request.RequestContextHolder;
//import org.springframework.web.context.request.ServletRequestAttributes;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletRequest;
//import java.util.List;
//
///**
// * @Create: IntelliJ IDEA.
// * @Author: subtlman_ljx
// * @Date: 2022/11/11/23:40
// * @Description: test
// */
//
//@Api(tags = "用户数据接口")
//@RestController
//@RequestMapping("/api/Test")
//public class TestController {
//
////    @Resource
////    private LogMapper logMapper;
//
//    @Resource
//    private UsersDAO usersDAO;
//
//    @AuditLog
//    @GetMapping("/getlists/{value}")
//    public ServiceResp<?> getLists(String value) {
//        ServletRequestAttributes requestAttributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
//        HttpServletRequest request = requestAttributes.getRequest();
//        System.out.println(request);
//        String s1 = new String();
//        try {
//            System.out.println("当前队列大小 ："+QueueUtil.queue.size());
//
//            System.out.println("------------------------");
////            Thread thread = new Thread(new QueueUtil());
////            thread.start();
////
////            s1 = QueueUtil.start();
////            s = QueueUtil.respBody();
////            Thread.sleep(3000);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//
//        return ServiceResp.getInstance().success(s1);
//    }
//
//    @AuditLog
//    @GetMapping("/getlists2")
//    public ServiceResp<?> getLists2() {
//        QueueUtil.start();
//        return null;
//    }
//
//
////    @AuditLog
////    @PostMapping("/postlists")
////    public ServiceResp<?> postLists(@Validated @RequestBody LogTbl tbl) {
////        logMapper.insert(tbl);
////        return ServiceResp.getInstance().success("PostMapping_test");
////    }
//
//    @GetMapping("/temp")
//    public ServiceResp<?> temp() {
//        final List<Users> users = usersDAO.select();
//
//        return ServiceResp.getInstance().success(users);
//    }
//
//}
